Add HAVE_GLIB check instead of checking individual libraries that use GLib.
authorJan D. <jan.h.d@swipnet.se>
Mon, 3 Jun 2013 18:47:35 +0000 (20:47 +0200)
committerJan D. <jan.h.d@swipnet.se>
Mon, 3 Jun 2013 18:47:35 +0000 (20:47 +0200)
commit3dd053395830a3442fe68217a6a55592c6c2d438
tree0939a774e85cde7133eb7ca3b9c4c2bac18f926d
parent34b9840c11513281e2775eae2996205609a31d5c
Add HAVE_GLIB check instead of checking individual libraries that use GLib.

* configure.ac (HAVE_GLIB): Add GLib check.  Set XGSELOBJ if GLib is
used.  Remove xgselect.o from XOBJ.

* src/Makefile.in (XGSELOBJ): New, xgselect.o if GLib is used, or empty.

* src/process.c (wait_reading_process_output): Call xg_select if HAVE_GLIB.

* src/xgselect.c: Replace #if defined ... with #ifdef HAVE_GLIB.
ChangeLog
configure.ac
src/ChangeLog
src/Makefile.in
src/process.c
src/xgselect.c